package com.liu.project.service.impl;

import com.liu.project.dao.PersonalityCommMapper;
import com.liu.project.pojo.Personality;
import com.liu.project.service.PerComService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: project
 * @description: 用户性格
 * @author: 86187
 * @create: 2022-04-20 17:18
 **/

@Service
public class PerComServiceImpl implements PerComService {


    @Autowired
    private PersonalityCommMapper commMapper;

    @Override
    public List<Personality> getAll() {
        return commMapper.getAll();
    }

    @Override
    public int getIdByPName(String perName) {
        return commMapper.getIdByPName(perName);
    }

    @Override
    public List<Double> getPfvalueByMbid(int mbid) {
        return commMapper.getPfvalueByMbid(mbid);
    }
}
